package com.along.game.action.manage;

import com.along.framework.utils.ReqFuncs;
import com.along.framework.web.BaseAction;

public class AdminLoginAction extends BaseAction {
	private static final long serialVersionUID = -6840177094159940804L;
	
	//页面初始化
	public String logininit()
	{
		//System.out.print(5/0);
		return "amdin_login";
	}
	
	/**
	 * 后台用户登录
	 */
	public String adminlogin()
	{
		String employeeNo = ReqFuncs.getStringParam(this.struts2Util.getRequest(),"employeeNo","");
		String userPwd    = ReqFuncs.getStringParam(this.struts2Util.getRequest(),"userPwd", "");
		if("admin".equals(employeeNo)&&"admin".equals(userPwd))
		{
			return "adminindex";
		}
		else
		{
			this.struts2Util.getRequest().setAttribute("LOGIN_ERR_MSG", "所选地域用户工号不存在或者密码错误，请重试！"); 
			return "amdin_login";
		}
	}

}
